package com.southern.gateway.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

@Configuration
public class FeignConfig {
    @Bean
    public Retryer feignRetry() {
        return new Retryer.Default(1000L, TimeUnit.SECONDS.toMillis(1L), 5);
    }
}
